﻿<!DOCTYPE html>
<html>
<head>
	<title>@RenderSection("TitleContent", false)</title>

	<link href="/Content/Styles/Defaults.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="/Content/Styles/Site.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="/Content/Styles/Themes/default/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" />

	<script src="/Content/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery-ui-1.8.13.default.min.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.tools.min.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.ajaxLoading.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.navigation.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.tooltip.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.quick.navigation.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.jstree.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.cookie.js" type="text/javascript"></script>
	<script src="/Content/Scripts/jquery.hotkeys.js" type="text/javascript"></script>

	<script type="text/javascript">
		$(function () {
			$('.quickNavItem').quickNav({
				callbacks: {
					onClick: function (e, o) {
						var expands = $(e).attr("expands");

						if (expands && expands === "true") {
							o.persistOnClick = true;
						}
					}
				}
			});

			$("div.Treeview a").live("dblclick", function () {
				$.jstree._focused().toggle_node($(this));
			});

			$('.ddHeaderSubNav').navigation({ slideSpeed: 350 });
		});
	</script>

	@RenderSection("HeadContent", false)

	@{Html.EnableClientValidation();}
</head>
<body>
	<div class="wrapper">
		<div class="headerContainer">
			<div class="headerContent">
				<div class="headerLogoText">Logikbug.com</div>
				<div class="headerAvatar">
					<img alt="@Context.User.Identity.Name" src="/Content/Images/avatar.png" />
				</div>
				
				<div class="headerLoginInfo">
					<div class="headerWelcomeText">
						Welcome <a href="@Url.Action("personal", "users")" title="@Context.User.Identity.Name">@Context.User.Identity.Name</a>
					</div>

					@Html.ModulePartial("_MessageCountControl", "Test_Modules_Messaging_MessagingModule", false)

					<div class="headerLogout"><a href="@Url.Action("logout", "home")">Log out</a></div>
				</div>
			</div>
		</div>

		<div class="headerNavigation">
			@Html.RenderModuleMenus()
		</div>

		<div id="subNavigationContainer">
			<div id="HeaderSubNavigation" class="headerSubNav">
				<div class="headerSubNavContent"></div>
				<div class="headerSubNavClose"><a id="navCloseUsers" href="#">Close</a></div>
			</div>
		</div>
		
		<div id="divQuickNavContainer" class="quickNavContainer">
			<div id="quickNavLoc" class="quickNavItem" expands="true" ajaxUrl="@Url.RouteUrl("LocationsAjaxRoute", new { controller = "ajax", action = "getLocationsTreeView", parentId = Guid.Empty })">Locations</div>
			<div id="quickNavUsers" class="quickNavItem"><a href="@Url.Action("manage", "users")">Manage Users</a></div>
			<div id="divSample1" class="quickNavItem">Sample 1</div>
		</div>

		<div class="bodyContainer">
			<div id="quickNavContentContainer">
				<div class="quickNavContentHeader">
					<div id="quickNavContentLabel"></div>
					<div id="quickNavContentCloseButton"><a href="#" title="Close">X</a></div>
				</div>
			</div>

			<div class="bodyContent">
				@RenderBody()
			</div>
		</div>
	</div>
	<div class="footerContainer">
		@RenderSection("Footer", false)
	</div>
</body>
</html>